<%-- Config params _____________________________START --%>

<%@ attribute
	name="activeItem"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="allowDomMove"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="animCollapse"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="applyTo"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="autoDestroy"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="autoExpandColumn"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="autoExpandMax"
	type="java.lang.Integer"
	required="false"
	description="
" %>

<%@ attribute
	name="autoExpandMin"
	type="java.lang.Integer"
	required="false"
	description="
" %>

<%@ attribute
	name="autoHeight"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="autoLoad"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="autoLoadStore"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="autoScroll"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="autoShow"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="autoWidth"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="baseCls"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="bbar"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="bodyBorder"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="bodyStyle"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="border"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="bufferResize"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="buttonAlign"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="buttons"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="clicksToEdit"
	type="java.lang.Integer"
	required="false"
	description="
" %>

<%@ attribute
	name="cls"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="cm"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="colModel"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="collapseFirst"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="collapsed"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="collapsedCls"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="collapsible"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="columns"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="contentEl"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="ctCls"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="defaultType"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="defaults"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="disableSelection"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="disabledClass"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="draggable"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="elements"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="enableColumnHide"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="enableColumnMove"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="enableColumnResize"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="enableDragDrop"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="enableHdMenu"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="enableRowHeightSync"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="floating"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="footer"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="frame"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="header"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="headerAsText"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="height"
	type="java.lang.Integer"
	required="false"
	description="
" %>

<%@ attribute
	name="hideBorders"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="hideCollapseTool"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="hideMode"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="hideParent"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="html"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="iconCls"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="id"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="items"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="keys"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="layout"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="layoutConfig"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="listeners"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="loadMask"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="maskDisabled"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="maxHeight"
	type="java.lang.Integer"
	required="false"
	description="
" %>

<%@ attribute
	name="minButtonWidth"
	type="java.lang.Integer"
	required="false"
	description="
" %>

<%@ attribute
	name="minColumnWidth"
	type="java.lang.Integer"
	required="false"
	description="
" %>

<%@ attribute
	name="monitorResize"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="monitorWindowResize"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="plugins"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="renderTo"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="selModel"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="shadow"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="shadowOffset"
	type="java.lang.Integer"
	required="false"
	description="
" %>

<%@ attribute
	name="shim"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="sm"
	type="java.lang.Object"
	required="false"
	description="
(Object)Shorthand for selModel.
" %>

<%@ attribute
	name="stateEvents"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="stateId"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="store"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="stripeRows"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="style"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="tbar"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="title"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="titleCollapse"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="tools"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="view"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="viewConfig"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="width"
	type="java.lang.Integer"
	required="false"
	description="
" %>

<%@ attribute
	name="xtype"
	type="java.lang.String"
	required="false"
	description="
" %>
<%@ attribute
	name="selectFirstRowOnLoad"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%-- Config params _____________________________END --%>

<%-- Events _____________________________START --%>

<%@ attribute
	name="onActivate"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="onAdd"
	type="java.lang.Integer"
	required="false"
	description="
" %>

<%@ attribute
	name="onAfteredit"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onAfterlayout"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="onBeforeadd"
	type="java.lang.Integer"
	required="false"
	description="
" %>

<%@ attribute
	name="onBeforeclose"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="onBeforecollapse"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="onBeforedestroy"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="onBeforeedit"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onBeforeexpand"
	type="java.lang.Boolean"
	required="false"
	description="
" %>

<%@ attribute
	name="onBeforehide"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="onBeforeremove"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="onBeforerender"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="onBeforeshow"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="onBeforestaterestore"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onBeforestatesave"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onBodyresize"
	type="java.lang.Integer"
	required="false"
	description="
" %>

<%@ attribute
	name="onBodyscroll"
	type="java.lang.Integer"
	required="false"
	description="
" %>

<%@ attribute
	name="onCellclick"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onCellcontextmenu"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onCelldblclick"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onCellmousedown"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onClick"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onClose"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="onCollapse"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="onColumnmove"
	type="java.lang.Integer"
	required="false"
	description="
" %>

<%@ attribute
	name="onColumnresize"
	type="java.lang.Integer"
	required="false"
	description="
" %>

<%@ attribute
	name="onContextmenu"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onDblclick"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onDeactivate"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="onDestroy"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="onDisable"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="onEnable"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="onExpand"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="onHeaderclick"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onHeadercontextmenu"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onHeaderdblclick"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onHeadermousedown"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onHide"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="onKeydown"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onKeypress"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onMousedown"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onMouseout"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onMouseover"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onMouseup"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onMove"
	type="java.lang.Integer"
	required="false"
	description="
" %>

<%@ attribute
	name="onRemove"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="onRender"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="onResize"
	type="java.lang.Integer"
	required="false"
	description="
" %>

<%@ attribute
	name="onRowclick"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onRowcontextmenu"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onRowdblclick"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onRowmousedown"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onShow"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="onSortchange"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onStaterestore"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onStatesave"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%@ attribute
	name="onTitlechange"
	type="java.lang.String"
	required="false"
	description="
" %>

<%@ attribute
	name="onValidateedit"
	type="java.lang.Object"
	required="false"
	description="
" %>

<%-- Events _____________________________END --%>

<%@ attribute
	name="fields"
	type="java.lang.String"
	required="false"
	description="(String) Fields definition, generated automatically."
 %>

<%-- Gfa4ext attritutes ______________START  --%>
 <%@ attribute
	name="queryObjectName"
	type="java.lang.String"
	required="true"
	description=""
 %>
  <%@ attribute
	name="whereCondition"
	type="java.lang.String"
	required="false"
	description=""
 %>
 <%@ attribute
	name="reader"
	type="java.lang.String"
	required="false"
	description=""
 %>
 <%@ attribute
	name="paging"
	type="java.lang.Boolean"
	required="false"
	description=""
 %>
 <%@ attribute
	name="displayPagingInfo"
	type="java.lang.Boolean"
	required="false"
	description=""
 %>
 <%@ attribute
	name="pagingPos"
	type="java.lang.String"
	required="false"
	description=""
 %>
 <%@ attribute
	name="allowSelectPageSize"
	type="java.lang.Boolean"
	required="false"
	description=""
 %>
 <%@ attribute
	name="pageSizeList"
	type="java.lang.String"
	required="false"
	description=""
 %>
 <%@ attribute
	name="pageSize"
	type="java.lang.Integer"
	required="false"
	description=""
 %>
 <%@ attribute
	name="multiSelect"
	type="java.lang.Boolean"
	required="false"
	description=""
 %>
 <%@ attribute
	name="orderBy"
	type="java.lang.String"
	required="false"
	description=""
 %>
 <%@ attribute
	name="sortType"
	type="java.lang.String"
	required="false"
	description=""
 %>
 <%@ attribute
	name="fieldCodeTypes"
	type="java.lang.String"
	required="false"
	description=""
 %>
 <%@ attribute
	name="dwrService"
	type="java.lang.Object"
	required="false"
	description=""
 %>
 <%@ attribute
	name="dwrMethod"
	type="java.lang.String"
	required="false"
	description=""
 %>
<%-- gxl 20090616 --%>
 <%@ attribute
	name="searchFormId"
	type="java.lang.String"
	required="false"
	description=""
 %>
 <%@ attribute
	name="editFormId"
	type="java.lang.String"
	required="false"
	description=""
 %>
 <%@ attribute
	name="editDivId"
	type="java.lang.String"
	required="false"
	description=""
 %>
 <%@ attribute
	name="searchBtnId"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="saveBtnId"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="newBtnId"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="deleteBtnId"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="cancelBtnId"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="editBtnId"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="exportToExcelBtnId"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="exportAllToExcelBtnId"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="parentId"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="editPageLocation"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="parentHiddenId"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="parentEditFormId"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="parentDwrService"
	type="java.lang.Object"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="parentLoadMethod"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="parentSaveMethod"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="childId"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="childSetName"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="parentName"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="foreignId"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="newParentBtnId"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="beforeSaveFunc"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
  <%@ attribute
	name="beforeNewRowFunc"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="beforeLoadFunc"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="beforeNewChildFunc"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="beforeRowSelectFunc"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="winId"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="winFormId"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="winSaveBtnId"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="winCancelBtnId"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="readerFields"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="beforeSearchFunc"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="exportExcelLimit"
	type="java.lang.Integer"
	required="false"
	description=""
 %> 
 
 <%@ attribute
	name="afterNewBtnFunc"
	type="java.lang.String"
	required="false"
	description=""
 %> 
 
 <%@ attribute
	name="showSortingAll"
	type="java.lang.Boolean"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="beforeLoadDwrConfig"
	type="java.lang.String"
	required="false"
	description=""
 %>
 
 <%@ attribute
	name="exportExcelColumnFuncs"
	type="java.lang.String"
	required="false"
	description=""
 %> 
 
  <%@ attribute
	name="afterDelBtnFunc"
	type="java.lang.String"
	required="false"
	description=""
 %> 
 
  <%@ attribute
	name="showExportToExcel"
	type="java.lang.Boolean"
	required="false"
	description=""
 %>
 
  <%@ attribute
	name="showExportAllToExcel"
	type="java.lang.Boolean"
	required="false"
	description=""
 %>
 
  <%@ attribute
	name="afterLoadFunc"
	type="java.lang.String"
	required="false"
	description=""
 %>
 <%@ attribute
	name="tabEnableEditor"
	type="java.lang.Boolean"
	required="false"
	description="// @added xiezm, 20111128PM15:18"
 %>
<%-- Gfa4ext attritutes ______________END  --%>

<%@ include file="inc/taglibs.jsp" %>

<%@ tag 
	import="org.apache.commons.beanutils.BeanUtils"
	dynamic-attributes="dynamicAttributes"
	description="Class for creating and editable grid. " %>
		
	<extutil:processTagAttributes 
		configVar="configMap" 
		eventsVar="eventsMap" 
		include="*" 
		exclude="items,readerFields"
		tagJspContext="<%=jspContext %>"
		dynamicAttributes="${dynamicAttributes}" />	
	
	<jsp:doBody />
	

	
	<%-- Process JSP body --%>
	<c:set var="item">
		    new Gfa.widgets.BaseGrid({
		  		<c:forEach items="${configMap}" var="config">${config.key}:${config.value},	
		  		</c:forEach>
				cm:new Ext.grid.ColumnModel([
					<%= BeanUtils.getProperty(this,"colModel") %>
				]),
		  		<c:if test='<%= BeanUtils.getProperty(this,"tbar")!=null %>'>
			        tbar:[
						<% 
							String tbar = BeanUtils.getProperty(this,"tbar");
							jspContext.getOut().write(tbar.substring(0,tbar.length()-1));
						 %>
			        ],
		  		</c:if>
		  		<c:if test='<%= BeanUtils.getProperty(this,"sm")!=null %>'>
			        sm:<%=BeanUtils.getProperty(this,"sm") %>,
		  		</c:if>
		  		<c:if test='<%= BeanUtils.getProperty(this,"readerFields")!=null %>'>
		  			<%
		  			String[] astr = BeanUtils.getProperty(this,"readerFields").split(",");
		  			StringBuilder strBdr = new StringBuilder();
		  			
		  			for(int i = 0;i<astr.length;i++){
		  				String str = astr[i];
		  				strBdr.append("'")
	  					  .append(str)
	  					  .append("'")
	  					  .append(",");
		  			}
		  			
		  			String result = "";
		  			if(strBdr.length() > 0){
		  				result = strBdr.toString();
		  				if(result.trim().endsWith(",")){
		  					result.substring(0, result.length()-2);
		  				}
		  			}
		  			%>
			        reader: new Gfa.data.DwrReader({}, [<%= result %>]),
		  		</c:if>
		  		<c:if test='<%= BeanUtils.getProperty(this,"bbar")!=null %>'>
			        bbar:[
						<% 
							String bbar = BeanUtils.getProperty(this,"bbar");
							jspContext.getOut().write(bbar.substring(0,bbar.length()-1));
						 %>
			        ],
		  		</c:if>
		  		<c:if test='<%= BeanUtils.getProperty(this,"buttons")!=null %>'>
			        buttons:[
						<% 
							String buttons = BeanUtils.getProperty(this,"buttons");
							jspContext.getOut().write(buttons.substring(0,buttons.length()-1));
						 %>
			        ],
		  		</c:if>
		  		<c:if test='<%= BeanUtils.getProperty(this,"tools")!=null %>'>
			        tools:[
						<% 
							String tools = BeanUtils.getProperty(this,"tools");
							jspContext.getOut().write(tools.substring(0,tools.length()-1));
						 %>
			        ],
		  		</c:if>
		  		<c:if test='<%= BeanUtils.getProperty(this,"viewConfig")!=null %>'>
			        viewConfig:<%= BeanUtils.getProperty(this,"viewConfig") %>,
		  		</c:if>	  				  		
		  		listeners:{
			  		<c:forEach items="${eventsMap}" var="event" varStatus="status">
			  			<c:if test='${fn:indexOf(event.value,"function(")==-1}'>
				  			${event.key}:function(){${event.value}}			  			
			  			</c:if>
		  				<c:if test='${fn:indexOf(event.value,"function(")>-1}'>
				  			${event.key}:${event.value}
			  			</c:if>
			  			${status.last?'':','}
			  		</c:forEach>
		  		}
		    }),
	</c:set>
	
	<extutil:setParentProperties 
		tag="<%=this%>" 
		items="${item}" />